import request from '@/utils/request.ts'
import { PageData } from '@/types/resp.ts'
import { BlogReply, ReplyPageParam, ReplyStatusChangeParam } from '@/types'

export const page = (param: ReplyPageParam): Promise<PageData<BlogReply>> => {
  return request({
    url: '/reply/page',
    method: 'post',
    data: param,
  })
}

export const statusChange = (param: ReplyStatusChangeParam) => {
  return request({
    url: '/reply/status/change',
    method: 'post',
    data: param,
  })
}
